package org.third.integration.suite.idm.hpsso;

import com.hp.sw.bto.ast.security.lwcrypto.LWCrypto;
//import com.hp.sw.bto.ast.security.lwsso.ConfigurationManagerUtils;
//import com.hp.sw.bto.ast.security.lwsso.conf.LWSSOConfigurationManager;
//import com.hp.sw.bto.ast.security.lwsso.conf.LWSSOContextConfig;

public class SmLwssoTest {
    public static void main(String[] args) throws Exception {
//        LWSSOConfigurationManager cm = LWSSOConfigurationManager.getInstance();
//        ConfigurationManagerUtils cmUtil = ConfigurationManagerUtils.getInstance();
//        cmUtil.init(SmLwssoTest.class.getResourceAsStream("lwssofmconf.xml"));
//        LWSSOContextConfig ctxConfig = ConfigurationManagerUtils.getLWSSOConfiguration().getCreationContextConfig();
//        String smClearText1 = "asdfasfd";
//        
//        LWCrypto smCrypto = ctxConfig.getEncryptor();        
//        String smEncryptedText = smCrypto.encrypt(smClearText1);
//        System.out.println(smEncryptedText);
//
//        LWCrypto smDecrypto = ctxConfig.getDecryptor();
//        System.out.println(smDecrypto.decrypt(smEncryptedText));
//        
        
        
        
        
    }
}
